/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package cz.cuni.mff.d3s.arcas.intermediate.util;

import cz.cuni.mff.d3s.arcas.intermediate.*;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.util.Switch;

/**
 * <!-- begin-user-doc -->
 * The <b>Switch</b> for the model's inheritance hierarchy.
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
 * to invoke the <code>caseXXX</code> method for each class of the model,
 * starting with the actual class of the object
 * and proceeding up the inheritance hierarchy
 * until a non-null result is returned,
 * which is the result of the switch.
 * <!-- end-user-doc -->
 * @see cz.cuni.mff.d3s.arcas.intermediate.IntermediatePackage
 * @generated
 */
public class IntermediateSwitch<T> extends Switch<T> {
	/**
	 * The cached model package
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static IntermediatePackage modelPackage;

	/**
	 * Creates an instance of the switch.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public IntermediateSwitch() {
		if (modelPackage == null) {
			modelPackage = IntermediatePackage.eINSTANCE;
		}
	}

	/**
	 * Checks whether this is a switch for the given package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @parameter ePackage the package in question.
	 * @return whether this is a switch for the given package.
	 * @generated
	 */
	@Override
	protected boolean isSwitchFor(EPackage ePackage) {
		return ePackage == modelPackage;
	}

	/**
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
	 * @generated
	 */
	@Override
	protected T doSwitch(int classifierID, EObject theEObject) {
		switch (classifierID) {
			case IntermediatePackage.INTERMEDIATE_DOCUMENT: {
				IntermediateDocument intermediateDocument = (IntermediateDocument)theEObject;
				T result = caseIntermediateDocument(intermediateDocument);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.CONNECTOR: {
				Connector connector = (Connector)theEObject;
				T result = caseConnector(connector);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.CONNECTOR_ENDPOINT: {
				ConnectorEndpoint connectorEndpoint = (ConnectorEndpoint)theEObject;
				T result = caseConnectorEndpoint(connectorEndpoint);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.CONNECTOR_FEATURE: {
				ConnectorFeature connectorFeature = (ConnectorFeature)theEObject;
				T result = caseConnectorFeature(connectorFeature);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.CONNECTOR_FEATURE_VALUE: {
				ConnectorFeatureValue connectorFeatureValue = (ConnectorFeatureValue)theEObject;
				T result = caseConnectorFeatureValue(connectorFeatureValue);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.CONNECTOR_FEATURE_VALUE_ATTRIBUTE: {
				ConnectorFeatureValueAttribute connectorFeatureValueAttribute = (ConnectorFeatureValueAttribute)theEObject;
				T result = caseConnectorFeatureValueAttribute(connectorFeatureValueAttribute);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.DEPLOYMENT_DOCK: {
				DeploymentDock deploymentDock = (DeploymentDock)theEObject;
				T result = caseDeploymentDock(deploymentDock);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.DISTRIBUTION_ARCHITECTURE: {
				DistributionArchitecture distributionArchitecture = (DistributionArchitecture)theEObject;
				T result = caseDistributionArchitecture(distributionArchitecture);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.DISTRIBUTION_ARCHITECTURE_ROLE: {
				DistributionArchitectureRole distributionArchitectureRole = (DistributionArchitectureRole)theEObject;
				T result = caseDistributionArchitectureRole(distributionArchitectureRole);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.DISTRIBUTION_ARCHITECTURE_UNIT: {
				DistributionArchitectureUnit distributionArchitectureUnit = (DistributionArchitectureUnit)theEObject;
				T result = caseDistributionArchitectureUnit(distributionArchitectureUnit);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.DISTRIBUTION_ARCHITECTURE_REMOTE_BINDING: {
				DistributionArchitectureRemoteBinding distributionArchitectureRemoteBinding = (DistributionArchitectureRemoteBinding)theEObject;
				T result = caseDistributionArchitectureRemoteBinding(distributionArchitectureRemoteBinding);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.DISTRIBUTION_ARCHITECTURE_FEATURE_DELEGATION: {
				DistributionArchitectureFeatureDelegation distributionArchitectureFeatureDelegation = (DistributionArchitectureFeatureDelegation)theEObject;
				T result = caseDistributionArchitectureFeatureDelegation(distributionArchitectureFeatureDelegation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.ELEMENT_ARCHITECTURE: {
				ElementArchitecture elementArchitecture = (ElementArchitecture)theEObject;
				T result = caseElementArchitecture(elementArchitecture);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.ELEMENT_ARCHITECTURE_SUB_ELEMENT: {
				ElementArchitectureSubElement elementArchitectureSubElement = (ElementArchitectureSubElement)theEObject;
				T result = caseElementArchitectureSubElement(elementArchitectureSubElement);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.ELEMENT_ARCHITECTURE_PORT_BINDING: {
				ElementArchitecturePortBinding elementArchitecturePortBinding = (ElementArchitecturePortBinding)theEObject;
				T result = caseElementArchitecturePortBinding(elementArchitecturePortBinding);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.ELEMENT_ARCHITECTURE_SIGNATURE_PROPAGATION: {
				ElementArchitectureSignaturePropagation elementArchitectureSignaturePropagation = (ElementArchitectureSignaturePropagation)theEObject;
				T result = caseElementArchitectureSignaturePropagation(elementArchitectureSignaturePropagation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.ELEMENT_ARCHITECTURE_FEATURE: {
				ElementArchitectureFeature elementArchitectureFeature = (ElementArchitectureFeature)theEObject;
				T result = caseElementArchitectureFeature(elementArchitectureFeature);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.ELEMENT_ARCHITECTURE_FEATURE_ATTRIBUTE: {
				ElementArchitectureFeatureAttribute elementArchitectureFeatureAttribute = (ElementArchitectureFeatureAttribute)theEObject;
				T result = caseElementArchitectureFeatureAttribute(elementArchitectureFeatureAttribute);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.NAME_VALUES_PAIR: {
				NameValuesPair nameValuesPair = (NameValuesPair)theEObject;
				T result = caseNameValuesPair(nameValuesPair);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.PORT: {
				Port port = (Port)theEObject;
				T result = casePort(port);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.ROLE: {
				Role role = (Role)theEObject;
				T result = caseRole(role);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.SIGNATURE: {
				Signature signature = (Signature)theEObject;
				T result = caseSignature(signature);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.SUBELEMENT: {
				Subelement subelement = (Subelement)theEObject;
				T result = caseSubelement(subelement);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case IntermediatePackage.UNIT: {
				Unit unit = (Unit)theEObject;
				T result = caseUnit(unit);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			default: return defaultCase(theEObject);
		}
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Document</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Document</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseIntermediateDocument(IntermediateDocument object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Connector</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Connector</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseConnector(Connector object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Connector Endpoint</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Connector Endpoint</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseConnectorEndpoint(ConnectorEndpoint object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Connector Feature</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Connector Feature</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseConnectorFeature(ConnectorFeature object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Connector Feature Value</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Connector Feature Value</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseConnectorFeatureValue(ConnectorFeatureValue object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Connector Feature Value Attribute</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Connector Feature Value Attribute</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseConnectorFeatureValueAttribute(ConnectorFeatureValueAttribute object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Deployment Dock</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Deployment Dock</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDeploymentDock(DeploymentDock object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Distribution Architecture</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Distribution Architecture</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDistributionArchitecture(DistributionArchitecture object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Distribution Architecture Role</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Distribution Architecture Role</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDistributionArchitectureRole(DistributionArchitectureRole object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Distribution Architecture Unit</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Distribution Architecture Unit</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDistributionArchitectureUnit(DistributionArchitectureUnit object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Distribution Architecture Remote Binding</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Distribution Architecture Remote Binding</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDistributionArchitectureRemoteBinding(DistributionArchitectureRemoteBinding object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Distribution Architecture Feature Delegation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Distribution Architecture Feature Delegation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseDistributionArchitectureFeatureDelegation(DistributionArchitectureFeatureDelegation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Port</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Port</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T casePort(Port object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Subelement</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Subelement</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseSubelement(Subelement object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Unit</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Unit</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseUnit(Unit object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Role</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Role</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseRole(Role object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Signature</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Signature</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseSignature(Signature object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Element Architecture</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Element Architecture</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseElementArchitecture(ElementArchitecture object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Element Architecture Sub Element</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Element Architecture Sub Element</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseElementArchitectureSubElement(ElementArchitectureSubElement object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Element Architecture Port Binding</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Element Architecture Port Binding</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseElementArchitecturePortBinding(ElementArchitecturePortBinding object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Element Architecture Signature Propagation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Element Architecture Signature Propagation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseElementArchitectureSignaturePropagation(ElementArchitectureSignaturePropagation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Element Architecture Feature</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Element Architecture Feature</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseElementArchitectureFeature(ElementArchitectureFeature object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Element Architecture Feature Attribute</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Element Architecture Feature Attribute</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseElementArchitectureFeatureAttribute(ElementArchitectureFeatureAttribute object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Name Values Pair</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Name Values Pair</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseNameValuesPair(NameValuesPair object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
	 * @generated
	 */
	@Override
	public T defaultCase(EObject object) {
		return null;
	}

} //IntermediateSwitch
